import request from '../utils/request'

export default class wordController {



  // 获取文档列表
  static getWordList(data) {
    return request({
      url: '/web/word/list',
      method: 'post',
      data
    })
  }

  // 删除文档
  static delWord(data) {
    return request({
      url: '/web/word/delete',
      method: 'post',
      data
    })
  }

  // 修改文档名
  static updateWord(data) {
    return request({
      url: '/web/word/update',
      method: 'post',
      data
    })
  }

  // 新建文档
  static addWord(data) {
    return request({
      url: '/web/word/add',
      method: 'post',
      data
    })
  }


}
